<?php
require_once 'config.php';

$content = $_GET["content"];
$name = $_GET["name"];
$color = $_GET["color"];
$time = date("Y-m-d H:i:s", time());

// 插入语句
$sql = "INSERT INTO `wish` (`id`, `name`, `content`, `time`, `color`, `password`) VALUES (NULL, '$name', '$content', '$time', '$color', '');";
// 执行语句
$conn->query($sql);

header("Location:index.php");
